package com.dev;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.app.Application;
class IconInto extends IconView{
		Bitmap into;
		IconInto(MainActivity ma){
			super(ma);
			into=BitmapFactory.decodeResource(getResources(),R.drawable.ic_into);
		}
		@Override
		protected void onDraw(Canvas canvas){
			super.onDraw(canvas);
			int vh=getHeight();
			int vw=getWidth();
			int paddingVer=vh/8;
			int strokeWidth=vh/10;
			int ww=getHeight()/2;
			int rr=(vw-vh)/2+vh;
			int ll=rr-ww;
			int bb=vh-paddingVer;
			int lll=vw-rr;
			Paint p=new Paint();
			p.setColor(0xff000000);
			canvas.drawBitmap(into,null,new Rect(lll,paddingVer,lll+vh,vh-paddingVer),p);
			canvas.drawRect(ll,paddingVer,rr,paddingVer+strokeWidth,p);
			canvas.drawRect(rr-strokeWidth,paddingVer,rr,bb,p);
			canvas.drawRect(ll,bb-paddingVer,rr,bb,p);
		}
	}
